package api

import (
	"github.com/gin-gonic/gin"
	"wwt-gin-api/app/service/captcha"
	"wwt-gin-api/app/utils/response"
)

type Captcha struct {
}

// GetCaptcha 获取验证码
func (receiver *Captcha) GetCaptcha(context *gin.Context) {
	info := captcha.CaptchaFactory().Captcha()
	response.Success(context, "ok",
		info)
}
